package com.greatwqs.wmall.user.provider.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 传递 token
 *
 * @author wang-qingsong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginVo {

    private Long userId;
    private String loginToken;

    public static LoginVo of(Long userId, String loginToken) {
        return new LoginVo(userId, loginToken);
    }
}
